package org.pearl.thread.demo.test002;

import lombok.SneakyThrows;

import java.util.concurrent.TimeUnit;

/**
 * Created by TD on 2021/4/14
 */
public class SyncTest001 {
    public static void main(String[] args) throws InterruptedException {
        new Thread(new Runnable() {
            @SneakyThrows
            @Override
            public void run() {
                System.out.println("生在转换视频....");
                TimeUnit.SECONDS.sleep(10);
            }
        }).start();
        System.out.println("主线程执行完成...");
    }
}
